<%--
  Created by IntelliJ IDEA.
  User: lt
  Date: 2017/5/9
  Time: 14:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!--_meta 作为公共模版分离出去-->
<!DOCTYPE HTML>
<html>
<head>

    <title>新建角色</title>
    <%@ include file="/common/include-core.jsp" %>
</head>
<body>
<article class="page-container">
    <form action="" method="post" class="form form-horizontal" id="userAddForm">
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"></label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="hidden" class="input-text" value="${adminUser.tid}" placeholder="" id="tid" name="tid">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">用户名：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="${adminUser.userName}" placeholder="" id="userName" name="userName">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">真实姓名：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="${adminUser.realName}" placeholder="" id="realName" name="realName">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">权限ID：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <select class="region select radius input-text" name="roleId">
                    <c:forEach items="${roleList}" var="item">
                        <option value="${item.tid}" ${adminUser.roleId==item.tid?"selected":""}>${item.roleName}</option>

                    </c:forEach>
                </select>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">状态：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <select class="region select radius input-text" name="status">
                    <option value="1" ${adminUser.status==1?"selected":""}>有效</option>
                    <option value="0" ${adminUser.status==0?"selected":""}>无效</option>
                </select>
            </div>
        </div>
        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3" style="position:absolute; height:400px; overflow:auto">
                <button type="button" class="btn btn-success radius" id="userAddOk" name="admin-role-save"><i class="icon-ok"></i> 确定</button>
            </div>
        </div>
    </form>
</article>

<script type="text/javascript" src="/static/js/user/userAdd.js"></script>

<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>
